package com.demo7;

public class qqg9q9qq99999g9qggq9 {
    private static final String ggq9ggqggqq999gq999 = q99qqgggqqgg9qg99g99g("amY6", "+#iP-EHM", "vsWOdSFv");
    private static final String qqggqqqgqgqqgqqg9qgg = q99qqgggqqgg9qg99g99g("GA0rRSAlAwUJAzs5VjchTj0hFg0=", "YHxjcg@*", "QzKNLsqe");

    /* renamed from: q99qqgggqqgg9qg99g99g  reason: collision with root package name */
    private static final String f2872q99qqgggqqgg9qg99g99g = q99qqgggqqgg9qg99g99g("XTs=", "mCGkD!UQ", "brSQ&ErU");

    public static String q99qqgggqqgg9qg99g99g(String str, String str2, String str3) {
        return qqggqqqgqgqqgqqg9qgg(str, str2, str3);
    }

    public static String qqggqqqgqgqqgqqg9qgg(String str, String str2, String str3) {
        byte[] bytes = str2.getBytes();
        byte[] decode = Base64.decode(str, 0);
        if (decode == null) {
            return q99qqgggqqgg9qg99g99g("", "snecn!$k", "eSoI&gnq");
        }
        byte[] bArr = new byte[decode.length];
        for (int i8 = 0; i8 < decode.length; i8++) {
            bArr[i8] = (byte) (decode[i8] ^ bytes[i8 % bytes.length]);
        }
        return new String(bArr);
    }

    /* renamed from: a */
    public static String translate(String str) {

        char[] charArray = new String(Base64.decode(str, 0)).toCharArray();
        int length = charArray.length;
        for (int i9 = 0; i9 < length; i9++) {
            charArray[i9] = (char) (charArray[i9] - 1);
        }
        return String.valueOf(charArray);
    }


    public static void main(String[] args){
        System.out.println(qqg9q9qq99999g9qggq9.qqggqqqgqgqqgqqg9qgg("JBgNGhw=", "LlyjoMGa", "siaIUtZu"));

//        System.out.println("result:"+translate("QWl0eWpmaWY="));
    }
}
